# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wpa_gui
pkgver=2.10
pkgrel=0
pkgdesc="Grafical User Interface for wpa_supplicant"
url="https://w1.fi/wpa_supplicant/"
arch="all"
license="BSD-3-Clause"
makedepends="dbus-dev qt5-qtbase-dev"
options="!check"
source="https://w1.fi/releases/wpa_supplicant-$pkgver.tar.gz"
builddir="$srcdir"/wpa_supplicant-"$pkgver"/wpa_supplicant

build() {
	qmake-qt5 -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro
	make -C wpa_gui-qt4
}

package() {
	install -d "$pkgdir"/usr/bin
	install -m 0755 wpa_gui-qt4/wpa_gui "$pkgdir"/usr/bin/wpa_gui
}

sha512sums="
021c2a48f45d39c1dc6557730be5debaee071bc0ff82a271638beee6e32314e353e49d39e2f0dc8dff6e094dcc7008cfe1c32d0c7a34a1a345a12a3f1c1e11a1  wpa_supplicant-2.10.tar.gz
"
